/**
 * Created by ryansecreat on 2017/12/25.
 */

const Transport = require('egg-logger').Transport;

class RemoteErrorTransport extends Transport {

    // 定义 log 方法，在此方法中把日志上报给远端服务
    log(level, args) {

        console.log("elk");
        this.options.app.logger.info("elk start");
    }
}

module.exports=RemoteErrorTransport;